﻿using System;
using System.Collections.Generic;
using System.Text;
using T.FAS.Runtime.Action.Entity;
using T.FAS.Runtime.Action.SPI;
using T.FAS.Runtime.Base.Entity;

namespace T.FAS.Runtime.Action.Dao
{
    public class DBInfoViewHelpFactory
    {
        public DataBaseInfoView GetDataBaseInfoViewByDataBaseCode(DataBaseInfo info)
        {
            IDBInfoViewDao dao = null;
            switch (info.DBType)
            {
                case DatabaseType.SQLServer:
                    dao = new MSS_DBInfoViewDao();
                    break;
                case DatabaseType.MySQL:
                default:
                    dao = new MySQL_DBInfoViewDao();
                    break;
            }
            return dao.GetDataBaseInfoViewByDataBaseCode(info);
        }


    }
}
